package cn.cyty.midway.user.po;

import java.util.Date;

import com.tuweisoft.tt.potts.pump.oo.annotion.Entity;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.Primarykey;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.choose.PBoolean;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.choose.PEnum;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.num.PInteger;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.text.Phone;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.text.Text;
import com.tuweisoft.tt.potts.pump.oo.annotion.field.time.PDate;
import com.tuweisoft.tt.potts.pump.oo.runtime.FieldType;
import com.tuweisoft.tt.potts.pump.oo.runtime.PumpObject;

@Entity(id="T_USER", title="用户信息", dataField="id", titleField = "name", keywordField="keyword")
public class User implements PumpObject {

	private static final long serialVersionUID = 4496680872815525269L;

	@PInteger(id="USER_ID", title="主键", required=true, unique=true)
	@Primarykey(increment=true)
	private String id;
	
	@Text(id="USER_NAME", title="用户姓名", minLength=255, required=true)
	private String name;
	
	@Text(id="USER_KEYWORD", title="关键字", maxLength=32)
	private String keyword;
	
	@PEnum(id="USER_SEX", title="性别", items={"m", "w"}, itemType=FieldType.TEXT, length=2)
	private String sex;
	
	@PDate(id="USER_DATE", title="生日")
	private Date birthday;
	
	@Text(id="USER_IDCARD", title="身份证", minLength=64)
	private String idCard;
	
	@PBoolean(id="USER_IDCARDVALIDATED", title="身份证验")
	private boolean idCardValidated;
	
	@Phone(id="USER_PHONE", title="手机", minLength=32)
	private String phone;
	
	@PBoolean(id="USER_PHONEVALIDATED", title="手机验证")
	private boolean phoneValidated;
	
	@Text(id="USER_EMAIL", title="邮箱", minLength=255)
	private String email;
	
	@PBoolean(id="USER_EMAILVALIDATED", title="邮箱验证")
	private boolean emailValidated;
	
	@Text(id="USER_WECHAT", title="微信号", minLength=255)
	private String WeChat;
	
	@Text(id="USER_NOTE", title="备注", minLength=9999)
	private String note;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public boolean isIdCardValidated() {
		return idCardValidated;
	}

	public void setIdCardValidated(boolean idCardValidated) {
		this.idCardValidated = idCardValidated;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public boolean isPhoneValidated() {
		return phoneValidated;
	}

	public void setPhoneValidated(boolean phoneValidated) {
		this.phoneValidated = phoneValidated;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isEmailValidated() {
		return emailValidated;
	}

	public void setEmailValidated(boolean emailValidated) {
		this.emailValidated = emailValidated;
	}

	public String getWeChat() {
		return WeChat;
	}

	public void setWeChat(String weChat) {
		WeChat = weChat;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
	
}
